package com.adinnet.api.user.service;

import com.adinnet.api.user.model.User;
import com.adinnet.core.JsonResult;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-02
 */
public interface UserService extends IService<User> {

    boolean sendCode(String mobile, String type);

    JsonResult login(String mobile, String pwd, HttpServletRequest request,String receiveUserId);

    JsonResult updatePwd(String mobile, String pwd, String code, HttpServletRequest request);

    JsonResult logoff(String telNo, HttpServletRequest request);

    JsonResult logout(String telNo,HttpServletRequest request, HttpServletResponse response);

    JsonResult checkVerification(String mobile, String code, HttpServletRequest request);

    JsonResult checkToken(String token, HttpServletRequest request);
}
